export const PAGE_CODE = 'dcs-sales-saleProformaInvoiceKd';
import {PAGE} from '../constants';
export const formatExportExcelUrl = (id, code) => `/sales/print/reportexcel.html?id=${id}&prefix=${code}&name=SaleProformaInvoiceKD&title=PI`;
export const formatExportPdfUrl = (id, code) => `/sales/print/report.html?id=${id}&prefix=${code}&name=SaleProformaInvoiceKD&title=PI`;
//设置管理员权限
export const PERMISSION = {
    add: 'add',
    update: 'update',
    abandon: 'abandon',
    exportExcel: 'exportExcel',
    exportPdf: 'exportPdf',
    cancel: 'cancel',
    confirm: 'confirm',
    confirmPi: 'confirmPi',
    create: 'create'
};
//重置常量
export const DEFAULT_QUERY_OPTION = {
    code: '',
    dealerId: '',
    country: '',
    marketDepartmentId: '',
    brandId: '',
    countryOfDestination: '',
    carrierCode: '',
    deliveryTerms: undefined,
    tradeMethodId: '',
    status: [],
    sourceCode: '',
    kDBomCode: '',
    createTime: [],
    confirmTime: [],
    isCBU: false,
    pageIndex: PAGE.index,
    pageSize: PAGE.size,
    sortField: 'code',
    isDesc: true,
    dataSource: undefined
};


import {proformaInvoiceSourceKd} from '../Enum';
export const invoiceSource = proformaInvoiceSourceKd.pick([
    proformaInvoiceSourceKd.手工录入,
    proformaInvoiceSourceKd.KD索赔单
]);
